package com.winshare.saleAssistant.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.winshare.saleAssistant.dao.UserOperationLogMapper;
import com.winshare.saleAssistant.domain.dto.req.DataAnalysisQueryDTO;
import com.winshare.saleAssistant.model.UserOperationLog;
import com.winshare.saleAssistant.service.IUserOperationLogService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户操作日志 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2020-11-15
 */
@Service
public class UserOperationLogServiceImpl extends ServiceImpl<UserOperationLogMapper, UserOperationLog> implements IUserOperationLogService {


    @Override
    public List<UserOperationLog> selectByCondition(String productName) {
        return this.baseMapper.selectByCondition(productName);
    }

    @Override
    public int getPerTime(String areaName, String productName, Date starTime, Date endTime) {
        return this.baseMapper.getPerTime(areaName, productName, starTime, endTime);
    }

    @Override
    public List<UserOperationLog> getFunCount(String provinceName, String cityName, String areaName, String productName, Date starTime, Date endTime, String orderBy) {
        return this.baseMapper.getFunCount(provinceName, cityName, areaName, productName, starTime, endTime, orderBy);
    }

    @Override
    public List<UserOperationLog> getFunTime(String provinceName, String cityName, String areaName, String productName, Date starTime, Date endTime, String orderType) {
        return this.baseMapper.getFunTime(provinceName, cityName, areaName, productName, starTime, endTime, orderType);

    }

    @Override
    public List<UserOperationLog> getFunTimeCount(DataAnalysisQueryDTO dataAnalysisQueryDTO) {
        return this.baseMapper.getFunTimeCount(dataAnalysisQueryDTO);
    }

    @Override
    public String getSynchronousTime() {
        return this.baseMapper.getSynchronousTime();
    }

}
